﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExpertManagerPage.aspx.cs"
    Inherits="EnvironmentManagerSystem.ExpertManager.ExpertManagerPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="../Script/artDialog.js?skin=aero" type="text/javascript"></script>

    <script src="../Script/iframeTools.js" type="text/javascript"></script>

    <script src="../Script/ShowMinPage.js" type="text/javascript"></script>

    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .myline /*输入线*/
        {
            border-right: #000000 0px solid;
            border-top: #000000 0px solid;
            border-left: #000000 0px solid;
            border-bottom: #000000 1px solid;
        }
        .a
        {
            text-decoration: underline;
        }
    </style>
</head>
<body style="background: #e0e2e7; overflow: visible;">
    <form id="form1" runat="server">
    <div>
        <table class="style1" align="center" style="width: 100%;">
            <tr>
                <td style="text-align: center">
                    专家姓名：<asp:TextBox ID="tb_Name" runat="server"></asp:TextBox>&nbsp;
                    <asp:Button ID="btn_Select" runat="server" Text="查询" OnClick="btn_Select_Click" CssClass="anniu1" />&nbsp;&nbsp;
                    <input class="anniu1" id="Button1" type="button" value="新增专家" runat="server" onclick="frm.show('ExpertManager/AddExpert.aspx','新增专家',false,800,600)" />&nbsp;&nbsp;
                    <asp:Button CssClass="anniu1" runat="server" ID="btnReBind" Text="刷新" OnClick="btnReBind_Click" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    <asp:GridView ID="gdvUser" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        AllowPaging="True" ForeColor="#333333" GridLines="Vertical" Width="99%" BorderColor="Silver"
                        OnPageIndexChanged="gdvUser_PageIndexChanged" OnPageIndexChanging="gdvUser_PageIndexChanging"
                        OnRowEditing="gdvUser_RowEditing" DataKeyNames="id" OnRowCancelingEdit="gdvUser_RowCancelingEdit"
                        OnRowDeleting="gdvUser_RowDeleting" OnRowUpdating="gdvUser_RowUpdating" OnRowCommand="gdvUser_RowCommand"
                        HorizontalAlign="Center" EmptyDataText="无数据" OnDataBound="gdvUser_DataBound">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F0F2F3" Font-Size="12px" Height="16px" HorizontalAlign="Center"
                            VerticalAlign="Middle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" DataField="ID" ReadOnly="true" />
                            <asp:TemplateField HeaderText="专家姓名" SortExpression="Name">
                                <ItemTemplate>
                                    <a onmouseout="MM_swapImgRestore()" onclick="frm.show('ExpertManager/ReadOnlyExpert.aspx?id=<%# Eval("Id") %>','专家信息',1250,770,360)">
                                        <%# Eval("Name")%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="性别" DataField="Sex" />
                            <asp:BoundField HeaderText="职务/职称" DataField="Title" />
                            <asp:TemplateField ShowHeader="False" HeaderText="操作">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <a class="a" onmouseout="MM_swapImgRestore()" onclick="frm.show('ExpertManager/ChangeExpert.aspx?id=<%# Eval("Id") %>','专家信息',1250,770,360)">
                                        <font color="#0000FF">编辑</font></a>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除" OnClientClick="javascript:return confirm('是否删除')"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle Font-Bold="True" ForeColor="#00286F" CssClass="right_list01_tit" BackColor="#507CD1" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
